import request from '@/utils/request'

  //upimage: query => post('/api/admin/course/courseCoverUpload', query),
  export function upimage(data) {
    return request({
      url: '/api/admin/course/courseCoverUpload',
      method: 'post',
      data: data
    })
  }
  //changeStatus: id => post('/api/admin/exam/paper/changeStatus/' + id),
  export function changeStatus(id) {
    return request({
      url: '/api/admin/exam/paper/changeStatus/' + id,
      method: 'post'
    })
  }
  //pageList: query => post('/api/admin/exam/paper/page', query),
  export function ppageList(data) {
    return request({
      url: '/api/admin/exam/paper/page',
      method: 'post',
      data: data
    })
  }
  //taskExamPage: query => post('/api/admin/exam/paper/taskExamPage', query),
  export function taskExamPage(data) {
    return request({
      url: '/api/admin/exam/paper/taskExamPage',
      method: 'post',
      data: data
    })
  }
  //edit: query => post('/api/admin/exam/paper/edit', query),
  export function edit(data) {
    return request({
      url: '/api/admin/exam/paper/edit',
      method: 'post',
      data: data
    })
  }
  //select: id => post('/api/admin/exam/paper/select/' + id),
  export function pselect(id) {
    return request({
      url: '/api/admin/exam/paper/select/' + id,
      method: 'post'
    })
  }
  //deletePaper: id => post('/api/admin/exam/paper/delete/' + id)
  export function deletePaper(id) {
    return request({
      url: '/api/admin/exam/paper/delete/' + id,
      method: 'post'
    })
  }

